﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="admin_AddUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        
    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
   
 <style type="text/css">
<!--
html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
-->
</style>

</head>
<body>
    <form id="form1" runat="server" onsubmit="return validateRegister();">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">新增员工</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">            
    <div style="height:20px;"></div>
    <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">
      <tr>
        <td width="100">登录名：</td>
        <td>
                <asp:TextBox ID="txtLoginName" runat="server" Height="16px" Width="156px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtLoginName" Width="10px" ErrorMessage="登陆名不能为空！" 
                    Font-Bold="True" Height="24px">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtLoginName" Height="10px" ValidationExpression="^.{4,20}$" Width="10px" Font-Bold="True" ErrorMessage="登陆名长度必须大于4个并小于20个字符！">*</asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtLoginName"
                        ErrorMessage="登陆名必须由数字、26个英文字母或者下划线组成！" Font-Bold="True" ValidationExpression="^\w+$"
                        Width="10px">*</asp:RegularExpressionValidator>
         </td>
        <td width="100">真实姓名：</td>
        <td>
            <asp:TextBox ID="txtUserName" runat="server"  Height="16px" Width="156px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUserName" ErrorMessage="真实姓名不能为空！" Font-Bold="True">*</asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td width="100">密码：</td>
                
        <td>
          <asp:TextBox ID="txtPassWord" runat="server" TextMode="Password"  Height="16px" Width="156px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPassWord" Width="10px" ErrorMessage="密码不能为空！" Font-Bold="True">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtPassWord"
                        ValidationExpression="^.{6,20}$" Width="10px" ErrorMessage="密码长度必须大于6个并小于20个字符！" Font-Bold="True">*</asp:RegularExpressionValidator>
                        </td>
        <td width="100">权限组：</td>
        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" 
                DataSourceID="ObjectDataSource1" DataTextField="PopedomGroupName" 
                DataValueField="PopedomGroupId" Font-Size="12px"  Height="20px" Width="156px">
                    </asp:DropDownList>
         </td>

      </tr>
      <tr>
        <td width="100">所属部门：</td>
        <td>
            <asp:DropDownList ID="DropDownList2" runat="server" 
                DataSourceID="ObjectDataSource2" DataTextField="SectionName" 
                DataValueField="SectionId" Font-Size="12px"  Height="20px" Width="156px">
                    </asp:DropDownList>
        </td>

        <td width="100">职位：</td>
        <td>
            <asp:DropDownList ID="DropDownList4" runat="server" 
                DataSourceID="ObjectDataSource3" DataTextField="JobName" DataValueField="JobId" 
                Font-Size="12px"  Height="20px" Width="156px">
                    </asp:DropDownList>
        </td>
      </tr>
      <tr>

        <td width="100">工资：</td>
        <td>
          <asp:TextBox ID="txtWage" runat="server"  Height="16px" Width="156px">0</asp:TextBox>
               </td>
        <td width="100">手机号：</td>
        <td>
           <asp:TextBox ID="mob" runat="server"  Height="16px" Width="156px"></asp:TextBox>
           </td>
      </tr>

      <tr>
        <td width="100">电话：</td>
        <td>
          <asp:TextBox ID="txtTelephone" runat="server"  Height="16px" Width="156px"></asp:TextBox>
       </td>
        <td width="100">性别：</td>
        <td>
            <asp:DropDownList ID="DropDownList5" runat="server" Font-Size="12px" 
                 Height="20px" Width="156px">
                        <asp:ListItem Value="true">男</asp:ListItem>
                        <asp:ListItem Value="false">女</asp:ListItem>
                    </asp:DropDownList>
        </td>
      </tr>
      <tr>
        <td width="100">地址：</td>
        <td>
            <asp:TextBox ID="txtAddress" runat="server"  Height="16px" Width="156px"></asp:TextBox>
        </td>
        <td width="100">民族：</td>
        <td>
            <asp:DropDownList ID="DropDownList6" runat="server" 
                DataSourceID="ObjectDataSource4" DataTextField="NationName" 
                DataValueField="NationId" Font-Size="12px" Height="20px" Width="156px">
                    </asp:DropDownList>
        </td>

      </tr>
      <tr>
        <td width="100">身份证号：</td>
        <td>
                <asp:TextBox ID="txtIDCard" runat="server" Height="16px" Width="156px"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtIDCard" ValidationExpression="\d{17}[\d|X]|\d{15}" Width="10px" ErrorMessage="身份证号格式不正确！" Font-Bold="True">*</asp:RegularExpressionValidator>
         </td>
        <td width="100">Email：</td>
        <td>
                <asp:TextBox ID="txtEmail" runat="server" Height="16px" Width="156px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Email格式不正确！" Width="10px" Font-Bold="True">*</asp:RegularExpressionValidator>
        </td>
      </tr>
      <tr>
        <td width="100">毕业院校：</td>
        <td>
            <asp:TextBox ID="txtFinishShool" runat="server" Height="16px" Width="156px"></asp:TextBox>
        </td>
        <td width="100">学历：</td>

        <td>
            <asp:DropDownList ID="DropDownList7" runat="server" Font-Size="12px" 
                 Height="20px" Width="156px">
                        <asp:ListItem Value="1">本科</asp:ListItem>
                        <asp:ListItem Value="2">大专</asp:ListItem>
                        <asp:ListItem Value="3">中专</asp:ListItem>
                    </asp:DropDownList>
        </td>
      </tr>
      <tr>

        <td width="100">毕业时间：</td>
        <td>
            <asp:TextBox ID="txtFinishShoolTime" runat="server" class="Wdate" 
                onClick="WdatePicker()"  Height="16px" Width="156px"></asp:TextBox>
          </td>
        <td width="100">加入时间：</td>
        <td>
            <asp:TextBox ID="txtJoinTime" runat="server" class="Wdate" 
                onClick="WdatePicker()" Height="16px" Width="156px"></asp:TextBox>
           </td>
      </tr>

      <tr>
        <td colspan="4"><div class="disk_queding_top">
            <asp:Button ID="btnSubmit" runat="server" Text="" OnClick="btnSubmit_Click" CssClass="section_tianjia_button"/>
        </div>
            <div class="disk_queding_top">
            <input id="btnReset" type="reset" value="" class="section_congzhi_button" />
            </div></td>
        </tr>
        <tr>
            <td colspan="4">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" Height="30px" 
          Width="200px" Font-Bold="False" ForeColor="#FF6666" />
            </td>
        </tr>
    </table>
    <div style="height:20px;"></div>

  </div>




                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindAll"
                        TypeName="TarreOA.TarreOABLL.PopedomGroupManager"></asp:ObjectDataSource>
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="findParentSectionInfo"
                        TypeName="TarreOA.TarreOABLL.SectionServices"></asp:ObjectDataSource>
        &nbsp;
                <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" SelectMethod="FindAll"
                        TypeName="TarreOA.TarreOABLL.JobManager"></asp:ObjectDataSource>
        &nbsp;
                    <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" SelectMethod="FindAll"
                        TypeName="TarreOA.TarreOABLL.NationManager"></asp:ObjectDataSource>
                        </div>
    </form>
</body>
</html>

